import request from './request.js'
export function addOrder(data) {
    console.log(data)
    // var order ={
    //     "driverId":driverId,
    //     "applyUserId":applyUserId,
    //     "setoffAddress":setoffAddress,
    //     "setoffTime":setoffTime,
    //     "arrivalAddress":arrivalAddress,
    //     "passengersNum":passengersNum,
    //     "totalKM":totalKM
    //   }
    return request({
        url: '/order/creatOrder',
        method: 'post',
        headers: {
            contentType:'application/json;charset=utf-8'
        },
        data: {order:data}
    })
}

//编辑司机信息
export function updataInfo(driverId,name){
    return request({
        url: 'http://192.168.101.5:8080/order/updDriverInOrder',
        method: 'post',
        data: {
            driverId: driverId,
            name: name
        }
    })
}


